package com.three.productList.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.three.core.entity.Product;
import com.three.productList.vo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：li
 * @date ：Created in 2025/3/11 011 14:39
 * @description：
 * @modified By：
 * @version:
 */
public interface ProductListDao extends BaseMapper<Product> {

    int deleteByProductId(Integer productId);

    IPage<ProductVo> selectMyList(@Param("page")Page<Product> page, @Param("panduan") PanduanVo panduanVo);

    List<Product> selectMyLists();

    int updateExamine(ExaminePassVo examinePassVo);

    List<ProductMobileVo> selectProductAndStoreNameByProductName(@Param("productName") String productName,@Param("userId") Integer userId);

    List<Product> selectProductImagesByProductId(Integer productId);

    List<ProductMobileVo> selectProductAndStoreNameByStoreId(@Param("productName") String productName,@Param("storeId") Integer storeId);

    List<ProductAndStoreNameVo> selectMyMobileList(@Param("proTypeId") Integer proTypeId,@Param("productName") String productName);

    int appraise(ProductAppraiseVo productAppraiseVo);
}
